import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

import { state,mutations,getters } from './mutations'
import { actions } from './actions'
import menu from './modules/menu'
import role from './modules/role'
import manege from './modules/manege'
import cate from './modules/cate'
import member from './modules/member'
import banner from './modules/banner'
import seckill from './modules/seckill'
import specs from './modules/specs'
import goods from './modules/goods'

export default new Vuex.Store({
  state,
  mutations,
  actions,
  getters,
  modules:{
    menu,
    role,
    manege,
    cate,
    member,
    banner,
    seckill,
    specs,
    goods
  }
})
